package com.hbu.product.hbumallproduct.event;

import com.hbu.product.hbumallproduct.entity.BrandEntity;
import org.springframework.context.ApplicationEvent;

import java.util.concurrent.CountDownLatch;

/**
 * @ProjectName: hbu-mall
 * @Package: com.hbu.product.hbumallproduct.event
 * @ClassName: BrandEvent
 * @Author: zxh
 * @Description:
 * @Date: 2022/11/16 20:47
 * @Version: 1.0
 */
public class BrandEvent extends ApplicationEvent {

    private BrandEntity brand;
    private CountDownLatch countDownLatch;

    public BrandEvent(Object source, BrandEntity brand, CountDownLatch countDownLatch) {
        super(source);
        this.brand = brand;
        this.countDownLatch = countDownLatch;
    }

    public BrandEntity getBrand() {
        return brand;
    }

    public void setBrand(BrandEntity brand) {
        this.brand = brand;
    }

    public CountDownLatch getCountDownLatch() {
        return countDownLatch;
    }

    public void setCountDownLatch(CountDownLatch countDownLatch) {
        this.countDownLatch = countDownLatch;
    }
}
